#ifndef BEG_H
#define BEG_H
#include <QWidget>
class Beg : public QWidget
{
    Q_OBJECT
    Q_PROPERTY(QString text READ text WRITE setText)

    //Q_PROPERTY(QString text WRITE setText)
   //Q_PROPERTY(QString text READ setText)

        public:
Beg(QWidget *parent = 0);
void setText(const QString &newText);
inline QString text() const
{
return stroka;
}
QSize sizeHint() const;
        private:
QString stroka;
int vikl;
int ttime;
//double ttime;
        protected:
void paintEvent(QPaintEvent *event);
void timerEvent(QTimerEvent *event);
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
        public slots:
    void change(int n);
};
#endif
